﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.Core.Extensions;

public static class NumberExts
{

    public static UInt32 ToUInt(this Object? value, UInt32 defaultValue = 0)
    {
        try
        {
            return Convert.ToUInt32(value);
        }
        catch { return defaultValue; }
    }

}
